package com.lukebang.dao;

import java.util.List;
import java.util.Map;

import com.lukebang.pojo.Indent;
import com.lukebang.pojo.InstallIndent;
import com.lukebang.pojo.MerchantsWalletRecord;
import com.lukebang.pojo.Worker;

/**
 * 
 * InstallIndentDAO 上午11:12:21
 * 
 * Copyright zhaocj Inc. All rights reserved.
 * Love ME Like Justin Bieber.
 */
public interface InstallIndentDAO {

	boolean insertInstallIndent(InstallIndent installIndent);

	Integer insertGoodsIndent(Map<String, Object> param);

	Integer modifyIndentByIndentId(Map<String, Object> paramMap);
	
	List<Indent> selectInstallIndentByMerchant(Map<String, Object> queryMap);

	Integer selectInstallIndentCountByMerchant(Map<String, Object> queryMap);
	
	Map<String, Object> selectIndentByIndentIDForJpush(Integer indentId);

	InstallIndent selectByPrimaryKey(Integer indentID);

	int modifyByPrimaryKey(InstallIndent indent);
	//根据id查询出订单类型。
	int selectInstallIndentType(Integer indentID);
	//根据id查询出订单状态
	int selectInstallIndentStatus(Integer status);
	//未付款的情况下添加商品后删除商品 设置indentid和goodsid的isdelete为1
	boolean deleteGoodsAndIndent(Map<String, Object> goods_indent);
	//解除isDeleted的关系  goods表中
	boolean deleteGoods(Integer goodsID);	
	//查询出是否需要取货 返回int 0，否  1 是
	int  selectIsNeedTakeGoodsByIndentID(Integer indentID);
}
